package com.hustzp.com.xichuangzhu.model;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * Created by chenxiaosong on 2016/5/29.
 */
@DatabaseTable(tableName = "dynasties")
public class Library {
    @DatabaseField(columnName = "id")
    private String id;
    @DatabaseField(columnName = "name")
    private String name;
    @DatabaseField(columnName = "intro")
    private String intro;
    @DatabaseField(columnName = "start_year")
    private String start_year;
    @DatabaseField(columnName = "end_year")
    private String end_year;
    @DatabaseField(columnName = "name_tr")
    private String name_tr;
    @DatabaseField(columnName = "intro_tr")
    private String intro_tr;

    public Library() {
    }

    public Library(String id, String name, String intro, String start_year, String end_year, String name_tr, String intro_tr) {
        this.id = id;
        this.name = name;
        this.intro = intro;
        this.start_year = start_year;
        this.end_year = end_year;
        this.name_tr = name_tr;
        this.intro_tr = intro_tr;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getStart_year() {
        return start_year;
    }

    public void setStart_year(String start_year) {
        this.start_year = start_year;
    }

    public String getEnd_year() {
        return end_year;
    }

    public void setEnd_year(String end_year) {
        this.end_year = end_year;
    }

    public String getName_tr() {
        return name_tr;
    }

    public void setName_tr(String name_tr) {
        this.name_tr = name_tr;
    }

    public String getIntro_tr() {
        return intro_tr;
    }

    public void setIntro_tr(String intro_tr) {
        this.intro_tr = intro_tr;
    }

    @Override
    public String toString() {
        return "Library{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", intro='" + intro + '\'' +
                ", start_year='" + start_year + '\'' +
                ", end_year='" + end_year + '\'' +
                ", name_tr='" + name_tr + '\'' +
                ", intro_tr='" + intro_tr + '\'' +
                '}';
    }
}
